import Vue from "vue"
import VueRouter from "vue-router"

Vue.use(VueRouter)
const routes = [
  // {
  //   path: '/',
  //   component: () => import("../views/login/login.vue")
  // },
  {
    path: '/',
    component: () => import("../layout/index.vue"),
    redirect:'/dashboard',
    children: [
      {
        path:'dashboard',
        component:()=>import('../layout/components/dashboard copy')
      }
    ]
  },
  {
    path: '/login',
    component: () => import("../views/Login.vue")
  },
  {
    path: '/denlu',
    component: () => import("../views/login/denlu.vue")
  }

]

const router = new VueRouter({
  routes
})
export default router